import { createRouter, createWebHashHistory } from "vue-router";

const routes = [
  {
    path: "/",
    redirect: { name: "mian" },
  },
  {
    name: "mian",
    path: "/main",
    component: () => import("@/views/Home"),
  },
  {
    name: "authority",
    path: "/authority",
    component: () => import("@/views/authority"),
  },
  {
    name: "electrice",
    path: "/electrice",
    component: () => import("@/views/electrice"),
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
